debian/rules: Use pyproject instead of distutils for pybuild
authorBoyuan Yang <byang@debian.org>
Sat, 3 Aug 2024 23:05:57 +0000 (19:05 -0400)
committerBoyuan Yang <byang@debian.org>
Sat, 3 Aug 2024 23:05:57 +0000 (19:05 -0400)
debian/rules

index 26baabeeafe92d498c3e2c1ff3ed26f43a888463..05f4cac780f5ea4ba5aef3f49f79958410afb204 100755 (executable)
@@ -41,14 +41,14 @@ override_dh_auto_configure:
        dh_auto_configure -- $(BUILD_OPTIONS)
 
 execute_after_dh_auto_build:
-       dh_auto_build -O--buildsystem=pybuild -- -s distutils --after-build \
+       dh_auto_build -O--buildsystem=pybuild -- -s pyproject --after-build \
                "cp obj-$(DEB_BUILD_GNU_TYPE)/opencc_clib.*.so {build_dir}/opencc/clib/"
 
 execute_after_dh_auto_test:
-       dh_auto_test -O--buildsystem=pybuild -- -s distutils
+       dh_auto_test -O--buildsystem=pybuild -- -s pyproject
 
 execute_after_dh_auto_install:
-       dh_auto_install -O--buildsystem=pybuild -- -s distutils
+       dh_auto_install -O--buildsystem=pybuild -- -s pyproject
        chrpath --delete debian/tmp/usr/lib/*/dist-packages/opencc/clib/*.so
        for i in debian/tmp/usr/lib/*/dist-packages/opencc/clib/; do \
                mkdir -p $$i/share/; \